<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">

    <title>H+ 后台主题UI框架 - 数据表格</title>

    <link href="/css/bootstrap.min.css?v=3.4.0" rel="stylesheet">
    <link href="/css/font-awesome.min.css?v=4.3.0" rel="stylesheet">

    <!-- Data Tables -->
    <link href="/css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">

    <link href="/css/animate.min.css" rel="stylesheet">
    <link href="/css/style.min.css?v=3.1.0" rel="stylesheet">

</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-content">

                        <table class="table table-striped table-bordered table-hover dataTables-example">
                            <thead>
                                <tr>
                                    <th>序号</th>
                                    <th>商品名称</th>
									<th>商品图片</th>
									<th>用户名称</th>
                                    <th>留言时间</th>
                                    <th>留言内容</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>

                          <% for(let i=0;i<result.length;i++) { %>
                                <tr class="gradeX">
                                    <td><%=i+1%></td>
                                    <td><%=result[i].good_name%></td>
									<td><img src="<%=img[i]%>" style="width:100px;height:100px;"></td>
                                    <td><%=result[i].username%></td>
                                    <td><%=result[i].time%></td>
                                    <td><%=result[i].textarea%></td>
                                    <td>
                                    <a href="/admin/liuyan/delete?id=<%=result[i].l_id%>"><button class="btn btn-danger" type="button"><i class="fa fa-danger">删除</i></button></a>
                                 </td>
                             </tr>
							 
							 <% } %>
							
                            </tbody>
                          
                        </table>

                           <div>
                          

                           </div>
                    </div>
                </div>
            </div>
        </div>
      
    </div>

    <!-- 全局js -->
    <script src="/js/jquery-2.1.1.min.js"></script>
    <script src="/js/bootstrap.min.js?v=3.4.0"></script>



    <script src="/js/plugins/jeditable/jquery.jeditable.js"></script>

    <!-- Data Tables -->
    <!-- <script src="public/admin/js/plugins/dataTables/jquery.dataTables.js"></script> -->
    <!-- <script src="public/admin/js/plugins/dataTables/dataTables.bootstrap.js"></script> -->

    <!-- 自定义js -->
    <script src="/js/content.min.js?v=1.0.0"></script>


    <!-- Page-Level Scripts -->
    <script>
       $(document).ready(function(){$(".dataTables-example").dataTable();var a=$("#editable").dataTable();a.$("td").editable("../example_ajax.php",{"callback":function(d,c){var b=a.fnGetPosition(this);a.fnUpdate(d,b[0],b[1])},"submitdata":function(c,b){return{"row_id":this.parentNode.getAttribute("id"),"column":a.fnGetPosition(this)[2]}},"width":"90%","height":"100%"})});function fnClickAddRow(){$("#editable").dataTable().fnAddData(["Custom row","New row","New row","New row","New row"])};
    </script>

    <script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>
    <!--统计代码，可删除-->
    
	<!--jquery传值-->
	<script>
	    function  getvalue(id,store_id){
			
		}
	<script>
</body>

</html>